package com.odd.webapp.businessobjects;


import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


/**
 * TODO Field class-level Javadoc.
 *
 * <p>...</p>
 *
 * @author
 */
@PersistenceCapable
public class Field extends Auditing implements java.io.Serializable {
  
  @Persistent
  private String fullName;
  @Persistent
  private String categoryName;
  @Persistent
  private String name;
  @Persistent
  private String type;
  @Persistent
  private int length;
  @Persistent 
  private int decimalLength;
  @Persistent
  private String description;
  
  public Field(){}
  
  public Field(String categoryName,String name){
    this.fullName = categoryName + "." + name;
    this.categoryName = categoryName;
    this.name = name;
  }
  
  public Field(String categoryName,String name,String type,int length, int decimalLength){
    this.fullName = categoryName + "." + name;
    this.categoryName = categoryName;
    this.name = name;
    this.type = type;
    this.length = length;
    this.decimalLength = length;
  }
  /**
   * @return the name
   */
  public String getName() {
    return name;
  }
  /**
   * @param name the name to set
   */
  public void setName(String name) {
    this.name = name;
  }
  /**
   * @return the type
   */
  public String getType() {
    return type;
  }
  /**
   * @param type the type to set
   */
  public void setType(String type) {
    this.type = type;
  }
  /**
   * @return the length
   */
  public int getLength() {
    return length;
  }
  /**
   * @param length the length to set
   */
  public void setLength(int length) {
    this.length = length;
  }
  /**
   * @return the decimalLength
   */
  public int getDecimalLength() {
    return decimalLength;
  }
  /**
   * @param decimalLength the decimalLength to set
   */
  public void setDecimalLength(int decimalLength) {
    this.decimalLength = decimalLength;
  }

  /**
   * @return the fullName
   */
  public String getFullName() {
    return fullName;
  }

  /**
   * @param fullName the fullName to set
   */
  public void setFullName(String fullName) {
    this.fullName = fullName;
  }

  /**
   * @return the packageName
   */
  public String getCategoryName() {
    return categoryName;
  }

  /**
   * @param packageName the packageName to set
   */
  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }

  /**
   * @return the description
   */
  public String getDescription() {
    return description;
  }

  /**
   * @param description the description to set
   */
  public void setDescription(String description) {
    this.description = description;
  }
  
}
